package uestc.lj.basic.graph;

/**
 * 表示图中的一条边
 *
 * @Author:Crazlee
 * @Date:2021/11/24
 */
public class Edge {
	/**
	 * 边的权值
	 */
	public int weight;
	/**
	 * 边的头
	 */
	public Node from;
	/**
	 * 边的尾
	 */
	public Node to;

	public Edge(int weight, Node from, Node to) {
		this.weight = weight;
		this.from = from;
		this.to = to;
	}
}
